// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: "2025-07-15",
  modules: ["@element-plus/nuxt", "@unocss/nuxt", "@pinia/nuxt"],
  plugins: [
    "~/plugins/element-icons.ts", // 引入刚刚创建的插件
  ],
  devtools: { enabled: true },
  runtimeConfig: {
    public: {
      apiBase: "", // 默认值，可通过 NUXT_PUBLIC_API_BASE 环境变量覆盖
    },
  },
  app: {},
});
